<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="renderer" content="webkit">
    <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=5">
    <title><?php echo implode('-',$title)?></title>
    <meta name="applicable-device" content="pc,mobile">
    <!--{hook head_link_style.html}-->
    <style>
        .last-time{
          margin-top:0;
          line-height:48px;
        }
        .panel .cell {
            padding-right: 5px;
        }
        .cell {
            overflow: hidden;
            position: relative;
            padding: 5px 0 5px 5px;
            font-size: 14px;
        }
        .user-avatar img{
            width:48px;height:48px;border-radius: 50%!important;
        }
        .user-small-avatar{
            width:25px;height:25px;border-radius: 50%!important;
        }
        .topic-sep:before {
            content: "|";
            margin:0 5px;
            opacity: .4;
        }
    </style>
</head>
<body onselectstart="return false" ondragstart="return false" onbeforecopy="return false" oncopy=document.selection.empty() onselect=document.selection.empty()>
<!--{hook website_header.html}-->
<div class="search">
    <div class="particles" id="j-particles" style="height: 100%;"></div>
    <div class="container" style="position: relative;">
        <p class="support-title"><?=$title[0]?></p>
        <form class="search-form" action="/s" method="get">
            <input class="search-input" type="text" name="keywords" value="" placeholder="输入关键词搜索...">
            <input class="search-button" type="submit" value="搜索">
        </form>
    </div>
</div>
<div class="question wrap container">
    <div class="q-sidebar sidebar hidden-xs" style="margin-top: 0;">
        <div class='panel'>
            <a class="btn-post" href="/question/add"><i class="fa fa-edit"></i> 发布新帖</a>
        </div>
        <!--div class="panel">
            <a href="/themes"><img src="/static/picture/2021032602420738.jpg" alt="wordpress主题"></a>
        </div!-->
        <div class="widget">
            <h3 class="widget-title"><i class="fa fa-fire"></i> 点击排行</h3>
            <ol class="widget-list">
                <?php  foreach ($List['data'] as $k=> $row){ ?>
                <li>
                    <span class="rank rank<?=$k+1?>"><?=$k+1?></span>
                    <a title="<?php echo $row['Subject'] ?>" href="/question/<?php echo $row['ThreadID'] ?>.html"><?php echo $row['Subject'] ?></a>
                </li>
                <?php } ?>

            </ol>
        </div>
    </div>
    <div class="q-content panel">
        <?php if(!empty($RootCate['children'])){?>
            <div class="header">
                <a href="/question" class="topic-tab <?php if(empty($catePinyin)){ ?>current-tab<?php } ?>" >全部</a>
            <?php foreach ($RootCate['children'] as $row) {?>
                    <a href="/question/<?php echo $row["Pinyin"] ?>" class="topic-tab <?php if($catePinyin==$row["Pinyin"]){ ?>current-tab<?php } ?>"><?php echo $row["Name"] ?></a>
            <?php } ?>
            </div>
        <?php }?>
        <?php if(!empty($CurrentCate)){ ?>
        <div class="layui-col-space2 header layui-row " style="background-color:#F9F9F9;">
            <?php foreach ($CurrentCate['children'] as $row) { ?>
                    <div class="layui-col-xs4 layui-col-md2" style="text-align:center">
                        <a href="/question/<?php echo $catePinyin.'/'.$row["Pinyin"] ?>" class="topic-tab  <?php if($catePinyin2==$row["Pinyin"]){ ?>current-tab<?php } ?>" ><?php echo $row["Name"] ?></a>
                    </div>
               <?php }?>
        </div>
        <?php } ?>
        <div style="clear:both"></div>
        <div class="topic-wrap inner no-padding">
            <div class="topic-list">
                <?php foreach ($List['data'] as $row){ ?>
                    <!--{hook website_question_topic_list.html}-->
                <?php } ?>
            </div>

            <ul class="pagination">
                <?php echo $pagination ?>
            </ul>
            </div>
    </div>
</div>
<!--{hook website_footer.html}-->
</body>
</html>